package icu.xuyijie.springbootlearning2.chapter4.thymeleaf;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 徐一杰
 * @date 2025/03/07 15:56
 * @description
 */
@Controller
@RequestMapping("/thymeleaf")
public class ThymeleafTestController {

    @GetMapping("/hello")
    public String hello(Model model) {
        model.addAttribute("loginMsg", "asdasdsadsadsadsadsadsa");
        return "index";
    }

}
